﻿<Window x:Class="CECB.Project.PrjctType_ParamDetails"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="ProjectTypesMainParam" Height="696" Width="930" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" WindowStartupLocation="CenterScreen"
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" Loaded="Window_Loaded">
       
    <Grid Height="654" Width="597">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="260*" />
            <ColumnDefinition Width="337*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="177*" />
            <RowDefinition Height="255*" />
        </Grid.RowDefinitions>
        <Rectangle Margin="12,41,107,245" Stroke="Black" RadiusY="19.5" RadiusX="19.5" StrokeThickness="3" Grid.RowSpan="2" Grid.ColumnSpan="2">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF878684" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <GroupBox BorderBrush="#FF3E3832" Header="Customize Main Parmeters for selected project type" Margin="21,76,115,255" Name="groupBox12" Grid.RowSpan="2" Grid.ColumnSpan="2">
            <Grid Height="448" Width="489">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="62*" />
                    <ColumnDefinition Width="123*" />
                    <ColumnDefinition Width="22*" />
                    <ColumnDefinition Width="205*" />
                </Grid.ColumnDefinitions>
                <WrapPanel Background="Black" Grid.ColumnSpan="4" Height="29" HorizontalAlignment="Left" Margin="7,40,0,0" Name="wrapPanel2" VerticalAlignment="Top" Width="440">
                    <Label Content="Enter New Main Parameter" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label3" Width="215" />
                    <Canvas Name="canvas3">
                        <WrapPanel Orientation="Vertical" />
                    </Canvas>
                    <TextBox Height="23" Name="textBox_NewMainParam" Width="172" />
                    <Button Content="Add" Height="23" Background="Blue" Name="button_AddNewMParam" Width="38" Click="button_AddNewMParam_Click" />
                </WrapPanel>
                <WrapPanel Background="#FF3E3832" Grid.ColumnSpan="4" Height="28" Margin="8,6,41,0" Orientation="Horizontal" VerticalAlignment="Top">
                    <Label BorderBrush="White" BorderThickness="0" Content="Project Type" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label22" VerticalAlignment="Top" Width="214" />
                    <ComboBox Background="#FFFFECA1" DisplayMemberPath="ptype_name"  FontSize="14" Height="22" Name="comboBox_projType" SelectedValuePath="ptype_reference"  Width="210" DropDownOpened="comboBox_projType_DropDownOpened" SelectionChanged="comboBox_projType_SelectionChanged" />
                </WrapPanel>
                <WrapPanel Background="Black" Height="29" Name="wrapPanel3" Grid.ColumnSpan="4" Margin="8,75,41,344">
                    <Label Content="Select Available Main Parameter" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label4" Width="214" />
                    <Canvas Name="canvas4">
                        <WrapPanel Orientation="Vertical" />
                    </Canvas>
                    <ComboBox Height="23" Name="comboBox_SelectMainParam" Width="207" FontSize="14" SelectedValuePath="mparam_reference" SelectionChanged="comboBox_SelectMainParam_SelectionChanged" DropDownOpened="comboBox_SelectMainParam_DropDownOpened" Background="#FFFFECA1">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding Path=mparam_name}" Margin="5,0" />
                                    <TextBlock Text=" - " Margin="5,0" />
                                    <TextBlock Text="{Binding Path=mparam_reference}" Margin="5,0" />
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                </WrapPanel>
                <WrapPanel Background="Black" Grid.ColumnSpan="4" Height="29" HorizontalAlignment="Left" Margin="6,110,0,0" Name="wrapPanel4" VerticalAlignment="Top" Width="442">
                    <Label Content="Enter New Sub Parameter" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label5" Width="216" />
                    <Canvas Name="canvas5">
                        <WrapPanel Orientation="Vertical" />
                    </Canvas>
                    <TextBox FontSize="16" Height="25" Name="textBox_NewSubParam" Width="172" />
                    <Button Content="Add" Height="23" Background="Brown" Name="button_AddNewSbparam" Width="35" Click="button_AddNewSbparam_Click" />
                </WrapPanel>
                <WrapPanel Background="Black" Height="29" HorizontalAlignment="Left" Margin="8,145,0,0" Name="wrapPanel5" VerticalAlignment="Top" Width="214" Grid.ColumnSpan="3">
                    <Label Content="Show Sub Parameters" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label6" Width="163" />
                    <Canvas Name="canvas6">
                        <WrapPanel Orientation="Vertical" />
                    </Canvas>
                </WrapPanel>
                <ListBox Grid.ColumnSpan="2" Height="123" FontSize="14" Background="#FFFFECA1" SelectedValuePath="subPrm_ref" DisplayMemberPath="subPrm_name" HorizontalAlignment="Left" Margin="4,145,0,0" Name="listBox_ShwSubParam" VerticalAlignment="Top" Width="223" KeyUp="listBox_ShwSubParam_KeyUp" Grid.Column="2" />
                <Button Content="Delete Main Parmeter Details" Height="25" HorizontalAlignment="Left" Margin="37,274,0,0" Name="button_DeletePrjTypParm" VerticalAlignment="Top" Width="165" Grid.Column="3" />
            </Grid>
        </GroupBox>
        <Label Content="Projet Type Parameter Details" FontSize="21.333" Foreground="White" Height="46" HorizontalAlignment="Center" Margin="21,41,279,0" VerticalAlignment="Top" Width="297" Grid.ColumnSpan="2" />
        <Image Height="32" HorizontalAlignment="Right" Margin="0,41,115,195" Source="/CECB;component/images/closeblack.png" Width="32" Grid.Column="1" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
    </Grid>
</Window>
